package com.dragee.modules.work.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;

/**
 * 品项和用品关联
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-03-29 14:41:10
 */
@Data
@TableName("t_shop_project_goods")
public class ShopProjectGoodsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id;

    /**
     * 店铺id
     */
    private String shopId;

    /**
     * 品相Id
     */
    private String projectId;

    /**
     * 用品Id
     */
    private String goodId;

    /**
     * 用品数量
     */
    private Integer sum;

    }